package com.example.fitness;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

import com.example.fitness.analysis.PieChartBuilder;

public class ChartAnalysisActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_chart_analysis);
		PieChartBuilder pie = new PieChartBuilder();
	    double[] values = new double[] { 124, 110, 319 };
	    String[] series = new String[] { "Calorie", "Protein", "Carbohydrate"};
	    Intent showPie = pie.getChartIntent(this, series, values);
	    startActivity(showPie);
	    
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.chart_analysis, menu);
		return true;
	}

}
